import service from '@/utils/request'
import {VERSION} from '@/api/common'


export function login(data) {
  return service({
    url: `/user/login`,
    method: 'post',
    data
  })
}

//资讯获取数据接口
export function getZixunData(data) {
  return service({
    url: `/information/getInformationList`,
    method: 'post',
    data
  })
}

//资讯添加数据接口
export function getZixunAddData(data) {
  return service({
    url: `/information/`,
    method: 'post',
    data
  })
}

//资讯删除数据接口
export function getZixunRemoteData(data) {
  return service({
    url: `/information/`,
    method: 'post',
    data
  })
}


export function getInfo(token) {
  return service({
    url: `/user/getInfo`,
    method: 'get',
  })
}

export function logout() {
  return service({
    url: `/user/logout`,
    method: 'get'
  })
}

export function list1() {
  return request({
    url: '/list1',
    method: 'GET',
  })
}

export function commod() {
  return request({
    url: '/commod',
    method: 'POST',
    data
  })
}

// 数据
export function shop(data) {
  return service({
    url: '/shop/getShopList',
    method: 'post',
    data
  })
}


